﻿@model ManufacturerModel
@{
    ViewBag.Title = T("Admin.Catalog.Manufacturers.EditManufacturerDetails").Text;
}
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "manufacturer-form" }))
{
    <div class="section-header">
        <div class="title">
            @T("Admin.Catalog.Manufacturers.EditManufacturerDetails") - @Model.Name 
			<a href='@Url.Action("List")'>(@T("Admin.Catalog.Manufacturers.BackToList"))</a>
        </div>
        <div class="options">
			@{ Html.RenderWidget("admin_button_toolbar_before"); }

            <button type="button" onclick="openWindow('@Url.RouteUrl("Manufacturer", new { SeName = Model.SeName })', true); return false;" class="btn btn-secondary">
				<i class="far fa-eye"></i>
				<span>@T("Admin.Common.Preview")</span>
            </button>
            <button type="submit" name="save" value="save" class="btn btn-warning">
                <i class="fa fa-check"></i>
                <span>@T("Admin.Common.Save")</span>
            </button>
            <button type="submit" name="save" value="save-continue" class="btn btn-secondary">
                <span>@T("Admin.Common.SaveContinue")</span>
            </button>
            <button type="submit" name="manufacturer-delete" id="manufacturer-delete" class="btn btn-danger">
                <i class="far fa-trash-alt"></i>
                <span>@T("Admin.Common.Delete")</span>
            </button>

			@{ Html.RenderWidget("admin_button_toolbar_after"); }
        </div>
    </div>

    Html.RenderPartial("_CreateOrUpdate", Model);
}
@Html.DeleteConfirmation("manufacturer-delete")